library;

/// @description: 地址相关接口
/// @author tangzhentao
/// @created at 19:33 2024/12/31

class ApiAddress {
  /// 添加收货地址 POST
  ///
  /// body {
  ///
  /// name [String] 联系人
  ///
  /// phone [String] 联系电话
  ///
  /// address [String] 详细地址
  ///
  /// house_number [String] 门牌号
  ///
  /// is_default [String] 0=不默认，1=默认
  /// }
  static const add = 'address/add';

  /// 修改收货地址 POST
  ///
  /// body {
  ///
  /// id [String] 要修改的地址ID
  ///
  /// name [String] 联系人
  ///
  /// phone [String] 联系电话
  ///
  /// address [String] 详细地址
  ///
  /// house_number [String] 门牌号
  ///
  /// is_default [String] 0=不默认，1=默认
  ///
  /// }
  static const edit = 'address/edit';

  /// 删除地址 POST
  ///
  /// body {
  ///
  /// id [String] 要修改的地址ID
  ///
  /// }
  static const delete = 'address/delete';

  /// 地址详情 POST
  ///
  /// body {
  ///
  /// id [String] 要修改的地址ID
  ///
  /// }
  static const detail = 'address/detail';

  /// 地址列表 POST
  ///
  /// body {
  ///
  /// page [String] 页码，从1开始
  ///
  /// }
  static const list = 'address/list';

  /// 获取默认收货地址 POST
  static const addressDefault = 'address/default';
}
